package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockControlHistory", catalog="guid")
public class TccStockControlHistory extends BaseEntity<TccStockControlHistory> {

	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="RkGuid", nameJava="rkGuid", typeDataBase="varchar")
	private String rkGuid;
	@YsField(nameDataBase="RkBid", nameJava="rkBid", typeDataBase="varchar")
	private String rkBid;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="VHw", nameJava="vHw", typeDataBase="varchar")
	private String vHw;
	@YsField(nameDataBase="VKq", nameJava="vKq", typeDataBase="varchar")
	private String vKq;
	@YsField(nameDataBase="GDepot", nameJava="gDepot", typeDataBase="varchar")
	private String gDepot;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="ProductNumAll", nameJava="productNumAll", typeDataBase="int")
	private Integer productNumAll;
	@YsField(nameDataBase="PurchasePrice", nameJava="purchasePrice", typeDataBase="decimal")
	private BigDecimal purchasePrice;
	@YsField(nameDataBase="PurchaseTotalPriceAll", nameJava="purchaseTotalPriceAll", typeDataBase="decimal")
	private BigDecimal purchaseTotalPriceAll;
	@YsField(nameDataBase="AllotPrice", nameJava="allotPrice", typeDataBase="decimal")
	private BigDecimal allotPrice;
	@YsField(nameDataBase="TotalAllotPrice", nameJava="totalAllotPrice", typeDataBase="decimal")
	private BigDecimal totalAllotPrice;
	@YsField(nameDataBase="SDays", nameJava="sDays", typeDataBase="int")
	private Integer sDays;
	@YsField(nameDataBase="AssembleID", nameJava="assembleID", typeDataBase="varchar")
	private String assembleID;
	@YsField(nameDataBase="PurchaseStorageID", nameJava="purchaseStorageID", typeDataBase="varchar")
	private String purchaseStorageID;
	@YsField(nameDataBase="PurchaseOrderID", nameJava="purchaseOrderID", typeDataBase="varchar")
	private String purchaseOrderID;
	@YsField(nameDataBase="PurchasePlanID", nameJava="purchasePlanID", typeDataBase="varchar")
	private String purchasePlanID;
	@YsField(nameDataBase="VGsMc", nameJava="vGsMc", typeDataBase="varchar")
	private String vGsMc;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="DRkSj", nameJava="dRkSj", typeDataBase="datetime")
	private Date dRkSj;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="IsParent", nameJava="isParent", typeDataBase="varchar")
	private String isParent;
	@YsField(nameDataBase="version", nameJava="version", typeDataBase="int")
	private Integer version;
	@YsField(nameDataBase="RecordTime", nameJava="recordTime", typeDataBase="datetime")
	private Date recordTime;

	public String getGuid() {
		return guid;
	}
	public TccStockControlHistory setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getRkGuid() {
		return rkGuid;
	}
	public TccStockControlHistory setRkGuid(String rkGuid) {
		this.rkGuid = rkGuid;
		return this;
	}
	public String getRkBid() {
		return rkBid;
	}
	public TccStockControlHistory setRkBid(String rkBid) {
		this.rkBid = rkBid;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TccStockControlHistory setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getVHw() {
		return vHw;
	}
	public TccStockControlHistory setVHw(String vHw) {
		this.vHw = vHw;
		return this;
	}
	public String getVKq() {
		return vKq;
	}
	public TccStockControlHistory setVKq(String vKq) {
		this.vKq = vKq;
		return this;
	}
	public String getGDepot() {
		return gDepot;
	}
	public TccStockControlHistory setGDepot(String gDepot) {
		this.gDepot = gDepot;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TccStockControlHistory setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TccStockControlHistory setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TccStockControlHistory setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public Integer getProductNumAll() {
		return productNumAll;
	}
	public TccStockControlHistory setProductNumAll(Integer productNumAll) {
		this.productNumAll = productNumAll;
		return this;
	}
	public BigDecimal getPurchasePrice() {
		return purchasePrice;
	}
	public TccStockControlHistory setPurchasePrice(BigDecimal purchasePrice) {
		this.purchasePrice = purchasePrice;
		return this;
	}
	public BigDecimal getPurchaseTotalPriceAll() {
		return purchaseTotalPriceAll;
	}
	public TccStockControlHistory setPurchaseTotalPriceAll(BigDecimal purchaseTotalPriceAll) {
		this.purchaseTotalPriceAll = purchaseTotalPriceAll;
		return this;
	}
	public BigDecimal getAllotPrice() {
		return allotPrice;
	}
	public TccStockControlHistory setAllotPrice(BigDecimal allotPrice) {
		this.allotPrice = allotPrice;
		return this;
	}
	public BigDecimal getTotalAllotPrice() {
		return totalAllotPrice;
	}
	public TccStockControlHistory setTotalAllotPrice(BigDecimal totalAllotPrice) {
		this.totalAllotPrice = totalAllotPrice;
		return this;
	}
	public Integer getSDays() {
		return sDays;
	}
	public TccStockControlHistory setSDays(Integer sDays) {
		this.sDays = sDays;
		return this;
	}
	public String getAssembleID() {
		return assembleID;
	}
	public TccStockControlHistory setAssembleID(String assembleID) {
		this.assembleID = assembleID;
		return this;
	}
	public String getPurchaseStorageID() {
		return purchaseStorageID;
	}
	public TccStockControlHistory setPurchaseStorageID(String purchaseStorageID) {
		this.purchaseStorageID = purchaseStorageID;
		return this;
	}
	public String getPurchaseOrderID() {
		return purchaseOrderID;
	}
	public TccStockControlHistory setPurchaseOrderID(String purchaseOrderID) {
		this.purchaseOrderID = purchaseOrderID;
		return this;
	}
	public String getPurchasePlanID() {
		return purchasePlanID;
	}
	public TccStockControlHistory setPurchasePlanID(String purchasePlanID) {
		this.purchasePlanID = purchasePlanID;
		return this;
	}
	public String getVGsMc() {
		return vGsMc;
	}
	public TccStockControlHistory setVGsMc(String vGsMc) {
		this.vGsMc = vGsMc;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public TccStockControlHistory setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public TccStockControlHistory setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public Date getDRkSj() {
		return dRkSj;
	}
	public TccStockControlHistory setDRkSj(Date dRkSj) {
		this.dRkSj = dRkSj;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockControlHistory setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public String getIsParent() {
		return isParent;
	}
	public TccStockControlHistory setIsParent(String isParent) {
		this.isParent = isParent;
		return this;
	}
	public Integer getVersion() {
		return version;
	}
	public TccStockControlHistory setVersion(Integer version) {
		this.version = version;
		return this;
	}
	public Date getRecordTime() {
		return recordTime;
	}
	public TccStockControlHistory setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
		return this;
	}

	public static TccStockControlHistory tccStockControlHistory(
		String guid,
		String rkGuid,
		String rkBid,
		String cid,
		String vHw,
		String vKq,
		String gDepot,
		String productName,
		String productCode,
		Integer productNum,
		Integer productNumAll,
		BigDecimal purchasePrice,
		BigDecimal purchaseTotalPriceAll,
		BigDecimal allotPrice,
		BigDecimal totalAllotPrice,
		Integer sDays,
		String assembleID,
		String purchaseStorageID,
		String purchaseOrderID,
		String purchasePlanID,
		String vGsMc,
		String vGsJc,
		String vGsBm,
		Date dRkSj,
		Date createTime,
		String isParent,
		Integer version,
		Date recordTime
			) {
		TccStockControlHistory entity = new TccStockControlHistory();
		entity.setGuid(guid);
		entity.setRkGuid(rkGuid);
		entity.setRkBid(rkBid);
		entity.setCid(cid);
		entity.setVHw(vHw);
		entity.setVKq(vKq);
		entity.setGDepot(gDepot);
		entity.setProductName(productName);
		entity.setProductCode(productCode);
		entity.setProductNum(productNum);
		entity.setProductNumAll(productNumAll);
		entity.setPurchasePrice(purchasePrice);
		entity.setPurchaseTotalPriceAll(purchaseTotalPriceAll);
		entity.setAllotPrice(allotPrice);
		entity.setTotalAllotPrice(totalAllotPrice);
		entity.setSDays(sDays);
		entity.setAssembleID(assembleID);
		entity.setPurchaseStorageID(purchaseStorageID);
		entity.setPurchaseOrderID(purchaseOrderID);
		entity.setPurchasePlanID(purchasePlanID);
		entity.setVGsMc(vGsMc);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDRkSj(dRkSj);
		entity.setCreateTime(createTime);
		entity.setIsParent(isParent);
		entity.setVersion(version);
		entity.setRecordTime(recordTime);
		return entity;
	}
}